@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
body {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

div:focus {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}
a[title=站长统计] {
    display: none;
}
//main-container全局样式
body {
    overflow: hidden;
}
.main-container{
    background:#eff3f5 
}
.app-main {
    min-height: 100%
}

.app-container {
    display: flex;
    flex-direction: column;
    padding: 53px 0px 0px 0px;
    // position: relative;
    overflow: auto;
    height: calc(100vh - 38px); //加上页卡
    // height: 100vh;
    width: 100%;
}

.el-button{
 margin-right: 1px;
}

.el-tabs__header{
 background: #fff;
 padding: 0px 10px;
 border-radius: 4px
}
// 普通一行搜索带页码 表格最大高度

.el-table__body-wrapper{
    overflow-y:auto;
    // max-height:calc(100vh - 320px);//加上页卡
    max-height:calc(100vh - 280px);
}
// 一行筛选  没页码
.oneSearchNoFooter .el-table__body-wrapper{
    // max-height:calc(100vh - 265px);//加上页卡
      max-height:calc(100vh - 220px);
}
// 两行筛选条件表格最大高度
.towSearchHeader .el-table__body-wrapper{
    // max-height:calc(100vh - 375px);//加上页卡
    max-height:calc(100vh - 330px);
}
// 三行筛选条件表格最大高度
.threeSearchHeader .el-table__body-wrapper{
    // max-height:calc(100vh - 425px);//加上页卡
    max-height:calc(100vh - 380px);
}
// 两个表格带分页
.towTabel .el-table__body-wrapper{
    // max-height:calc(100vh - 495px);//加上页卡
    max-height:calc(100vh - 450px);
}
// 弹框里的表格
.dialog_table_small .el-table__body-wrapper{
    max-height:calc(100vh - 600px);//加上页卡
}
// 弹框里的表格(小)
.dialog_table_mini .el-table__body-wrapper{
    max-height:calc(100vh - 750px);//加上页卡
}
// 购物车等弹框里的表格
.dialog_table .el-table__body-wrapper {
    height: 50vh;
}
.el-form-item--mini {
    margin-bottom: 15px !important
}

.el-loading-mask {
    z-index: 100 !important;
    height: 80% !important;
}
.el-dialog .el-loading-mask {
    height: 100% !important;
}
.dig_bottom10 {
    margin-bottom: 10px;
}
.el-table thead {
    color: #7e7e7e;
    font-weight: 500;
}
.el-table--border, .el-table--group {
    border: 1px solid #dedede;
}

.el-table--border {
    border-radius: 4px;
    border-right: none;
    border-bottom: none;
}
.el-table td, .el-table th.is-leaf{
    border-bottom:1px solid #dedede;
    border-right:1px solid #dedede;
}

.el-table--border th, .el-table__fixed-right-patch{
    border-bottom: 1px solid #dedede;
}
.el-table__footer-wrapper td{
    border-top:1px solid #dedede;
    border-right: 1px solid #dedede;
}
.el-table--border td, .el-table--border th, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{
    border-right: 1px solid #dedede;
}

.el-table--border::after, .el-table--group::after, .el-table::before{
    background: #dedede
}

.customContainer {
    flex: 1;
    padding:8px 15px;
    overflow: hidden;
    min-width: 1040px;
    .danger .el-input__inner{
        border-color: #f56c6c;
    }
    th.headerTotal>div{
        color: red;
        font-size: 20px;
    }
    th.header14px>div{
        font-size: 14px;
    }
}

.customHeader {
    padding: 10px 15px;
    font-size: 16px;
    background: #fff;
    // margin-bottom: 20px;
    color: #303133;
    overflow: hidden;
    border:1px solid #dedede;
    border-bottom: none
}

.customHeader div {
    margin: 6px
}

.bottom_box {
    padding: 5px 25px 0 15px;
    background: #fff;
    height: 45px;
    border: 1px solid #eee;
    // z-index: 2000;
}
.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.indexColor {
    color: #c0c4cc !important;
}

.w200 {
    width: 200px;
}
.w400{
    width: 400px;
}
.w160{
    width: 160px;
}
.mt10{
    margin-top: 10px;
}
.mt5{
    margin-top: 5px;
}
.fSize18{
    font-size: 18px;
}
.text-center{
    text-align: center;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}
.danger{
    color: #f56c6c !important;
}
.success{
    color: #67C23A !important;
}
.table_color{
    background: #e4ecf8 !important;
}
.errInput{
    border: 1px solid #f56c6c;
    border-radius: 4px;
}
.dialog-w80 .el-dialog {
    width: 80%;
}
// 预览大图样式
.preview img {
    width: 60px;
    height: 60px;
}
.preview.w figure {
    width: 60px;
    height: 60px;
    overflow: hidden;
    img{
        width: 60px;
        height: auto;
    }
}
.preview.h figure {
    width: 60px;
    height: 60px;
    overflow: hidden;
    img{
        height: 60px;
        width: auto;
    }
}
.preview.audit img {
    width: 80px;
    height: 80px;
}

//v-viewer 预览图
.images.fit{
    width: 60px;
    height: 60px;
    img{
        width: 100%;
        height: 100%;
        object-fit:cover;
    }
  }
.images.w{
    width: 60px;
    height: 60px;
    overflow: hidden;
    img{
        width: 60px;
        // height: auto;
    }
  }
.images.h{
    width: 60px;
    height: 60px;
    overflow: hidden;
    img{
        height: 60px;
        // width: auto;
    }
}
.images.off_sale{
    img{
        opacity: 0;
    }
}
.pswp__button--share{
    display: none !important;
}
figure {
    margin: 0
}
.pswp--open{
    z-index:2100 !important; 
}
// 穿梭框自定义样式
.noHover:hover {
    background: none
}

.el-transfer-panel .el-transfer-panel__header {
    position: absolute;
    bottom: -2px;
    width: 100%;
}

.transferHeader {
    height: 40px;
    line-height: 40px;
    background: #f5f7fa;
    margin: 0;
    padding-left: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #000;
}

.el-transfer-panel__body {
    height: 280px;
}

.el-transfer-panel {
    width: 230px;
}
// 穿梭器按钮样式
.el-transfer__buttons button:last-child {
    display: block !important;
    margin-left: 0px !important;
    width: 89px !important;
}

// 自己修改假表格合并样式
.falseTabel-container {
    .el-table {
        margin: 0
    }

    .el-table .cell {
        padding: 0 !important;
        line-height: 36px
    }

    .el-table--small td,
    .el-table--small th {
        padding: 0
    }

    .falseTabel-container .el-table .cell {
        padding: 0 !important;
        line-height: 36px
    }

    td p,td .checkbox_div {
        border-bottom: 1px solid #dedede;
        line-height: 40px;
        height: 38px;
        padding: 0;
        margin: 0;
    }

    td p:last-child,td .checkbox_div:last-child {
        border: none;
        padding: 0;
    }
}
/*滚动条样式------------------------------*/
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
        width: 8px;
        height: 10px;
        background-color: #F5F5F5;
    }
    /*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
        border-radius: 2px;
        background-color: #fff;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
        border-radius: 2px;
        -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, .3);
        background-color: #DBDBDD;
}
/*滚动条样式end------------------------------*/
.text_overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fridayColor{
    color:rgba(12,100,235,.8);
}
.weekendColor{
    color:orange
}
.el-checkbox{
    position: relative;
    top: -2px;
}

// div.table_input>div.el-autocomplete>div.el-input>input{
//     margin-top: 16px;
// }
p.pull-right.total_box{
    line-height:0;
    margin-right:100px;
    span{display: inline-block;}
    span.total{
        margin-right: 15px;
        font-size: 16px;
        font-weight: bold;
    }
    span+span{
        display: inline-block;
        width: 120px;
    }
    span.item{width: 180px;}
}

// 折线图提示框样式
div.tooltipStyle{
    color:#ddd;
    div.list{
        div.listTitle{
            color: #fff;
        }
        div.item{
            display: flex;
            align-items: center;
            div.itemCircle{
                width: 10px;
                height: 10px;
                border-radius: 50%;
                background: #67C23A;
                margin-right: 5px;
            }
        }
    }

}

//自定义进度条样式
div.DJprogress{
    position: relative;
    div{
      width: 100%;
      height: 15px;
      border-radius: 8px;
    }
    span{
      font-size: 12px;
    }
    div.backDiv{
      background: #ddd;
      margin-top: 4px;
    }
    div.processDiv{
      width: 0;
      position: absolute;
      top: 0px;
      left: 0px;
    }
    div.processDiv.blue{
      /*! autoprefixer: ignore next */
      background: -webkit-linear-gradient(left, rgba(50,130,219,0.5) , rgba(50,130,219,1)); /* Safari 5.1 - 6.0 */
      /* autoprefixer: on */
      background: -o-linear-gradient(right, 	rgba(50,130,219,0.5), 	rgba(50,130,219,1)); /* Opera 11.1 - 12.0 */
      background: -moz-linear-gradient(right, rgba(50,130,219,0.5), rgba(50,130,219,1)); /* Firefox 3.6 - 15 */
      background: linear-gradient(to right, rgba(50,130,219,0.5) , rgba(50,130,219,1)); /* 标准的语法（必须放在最后） */
    }
    div.processDiv.green{
      /*! autoprefixer: ignore next */
      background: -webkit-linear-gradient(left, rgba(80,213,127,0.5) , rgba(80,213,127,1)); 
      /* autoprefixer: on */
      background: -o-linear-gradient(right, 	rgba(80,213,127,0.5), 	rgba(80,213,127,1)); 
      background: -moz-linear-gradient(right, rgba(80,213,127,0.5), rgba(80,213,127,1)); 
      background: linear-gradient(to right, rgba(80,213,127,0.5) , rgba(80,213,127,1)); 
    }
    div.processDiv.yellow{
      /*! autoprefixer: ignore next */
      background: -webkit-linear-gradient(left, rgba(230,148,24,0.5) , rgba(230,148,24,1));
      /* autoprefixer: on */
      background: -o-linear-gradient(right, 	rgba(230,148,24,0.5), 	rgba(230,148,24,1)); 
      background: -moz-linear-gradient(right, rgba(230,148,24,0.5), rgba(230,148,24,1));
      background: linear-gradient(to right, rgba(230,148,24,0.5) , rgba(230,148,24,1)); 
    }
    div.processDiv.red{
      /*! autoprefixer: ignore next */
      background: -webkit-linear-gradient(left, rgba(255,76,76,0.5) , rgba(255,76,76,1));
      /* autoprefixer: on */
      background: -o-linear-gradient(right, 	rgba(255,76,76,0.5), 	rgba(255,76,76,1)); 
      background: -moz-linear-gradient(right, rgba(255,76,76,0.5), rgba(255,76,76,1));
      background: linear-gradient(to right, rgba(255,76,76,0.5) , rgba(255,76,76,1)); 
    }
    div.processDiv.lightBlue{
      /*! autoprefixer: ignore next */
      background: -webkit-linear-gradient(left, rgba(5,172,179,0.5) , rgba(5,172,179,1));
      /* autoprefixer: on */
      background: -o-linear-gradient(right, 	rgba(5,172,179,0.5), 	rgba(5,172,179,1)); 
      background: -moz-linear-gradient(right, rgba(5,172,179,0.5), rgba(5,172,179,1));
      background: linear-gradient(to right, rgba(5,172,179,0.5) , rgba(5,172,179,1)); 
    }
    .actual{
      margin-left: 10px;
      color: #999;
    }
    .ratio{
      position: absolute;
      font-size: 12px;
      top: 2px;
      left: 0px;
      white-space:nowrap;
    }
    .actual>.green,.ratio.green{
      color: #50d57f;
      font-weight: bold;
    }
    .actual>.yellow,.ratio.yellow{
      color: #e69418;
      font-weight: bold;
    }
    .actual>.blue,.ratio.blue{
      color: #3282db;
      font-weight: bold;
    }
    .actual>.red,.ratio.red{
      color: #05acb3;
      font-weight: bold;
    }
    .actual>.lightBlue,.ratio.lightBlue{
      color: #05acb3;
      font-weight: bold;
    }
    .goal{
      color: #999;
    }
  }

  //自定义分割线样式
  hr.DJhr{
      height: 1px;
      border: none;
      background: #ccc;
  }
  //图表公共样式
  p.chartTitle{
    font-size: 20px;
    font-weight: bold;
  }
  //筛选弹窗
  div.check_dialog{
    position: absolute;
    top: 0px;
    right: 30px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    padding: 10px;
    div.title{
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }
  }
  div.device_info_title{
    margin: 20px 0;
    span{
        margin-right: 20px;
    }
  }
  //顶部搜索框
  .app-wrapper .search input{
      background: transparent;
      border-color: transparent;
      color: #fff;
  }
  .app-wrapper .search input:hover,.app-wrapper .search input:focus{
    border-color: #dcdfe6; 
  }
  .app-wrapper .search input::-moz-placeholder { color:#bbb;} /* firefox 19+ */
  .app-wrapper .search input:-ms-input-placeholder { color:#bbb; } /* Internet Explorer 10+ */
  .app-wrapper .search input:-moz-placeholder { color:#bbb;} /* firefox 14-18 */
  .app-wrapper .search input::-webkit-input-placeholder { 
    color:#bbb;
  } 
  //默认门店弹窗
  .el-dialog.default_store_dialog{
    top: 40px;
    height: calc(100vh - 40px);
    .el-dialog__header{
        padding: 0;
    }
    .el-dialog__body{
        padding: 0;
    }
    .el-dialog__body .el-menu{
        .el-menu-item.common_store_item,.el-menu-item.is-active{
            color: #cecece;
            background: #304156;
            height: 50px;
            padding: 0px 20px;
            white-space: normal;
            line-height: inherit;
            display: flex;
            align-items: center;
            div{
                width: 140px;
                // white-space: pre-wrap;
            }
        }
        .el-menu-item.common_store_item:hover{
            background: #3282db;
        }
    }
    div main{
        position: relative;
        .search_store{
            position: fixed;
            z-index: 3000;
            top: 40px;
            left: 180px;
            padding-bottom: 20px;
            width: calc(100% - 180px);
            background: #f5f5f5;
            .el-autocomplete{
                width: 400px;
                div>input{
                    border: none;
                    border-bottom: 1px solid #cecece;
                    height: 50px;
                    line-height: 50px;
                    border-radius: inherit;
                    background: #f5f5f5;
                }
            }
        }
    } 
    div .common_title{
        text-align: center;
        color: #ddd;
        font-size: 16px;
        padding: 10px;        
    }
    div .all_store{
        width: 100%;
        text-align: center;
        margin-top: 50px;
        .store_list .store_col{
            padding: 20px;
        }
        .store_list .store_col{
            display: flex;
            justify-content: center;
            .store_item{
                cursor: pointer;
                background: #fff;
                width: 320px;
                height: 200px;
                display: flex;
                align-items: center;
                box-sizing: border-box;
                border: 1px solid #ccc;
                border-radius: 5px;
                box-shadow: 5px 5px 10px #ccc;
                .text{
                    width: 100%;
                    padding: 0 20px;
                    text-align: left;
                    .area{
                        color:#bbb;
                        font-size: 16px;
                    }
                    .name{
                        font-size: 18px;
                        margin: 10px 0;
                        width: 100%;
                        height: 50px;
                        display: flex;
                        align-items: center;
                    }
                }
                position: relative;
                img.brand{
                    position: absolute;
                    top: 0px;
                    right: 0px;
                }
                img.store{
                    position: absolute;
                    top: 10px;
                    left: 20px;
                }
            }
        }
        .store_list .store_col .store_item:hover{
            border-color: #0c76e3;
            box-shadow: 5px 5px 10px rgba(57,141,227,0.5);
        }
    } 
  }

  //选择平台弹窗
//   .el-dialog.platform_dialog{
//     background: url(../assets/images/bj.png) no-repeat center center fixed;
//     background-size: cover;
//   }
  //全屏loading
  .el-loading-mask.is-fullscreen{
    height: 100% !important;
  }

  //input内容居中
  .input_center.el-input input{
      text-align: center;
  }
  
  //自定义确认弹窗样式
  .confirm_dialog{
    border: 1px solid #eee;
    border-radius: 5px;
    .text{
        padding: 10px;
        background: #efefef;
    }
    .text+.text{
        padding-top:0; 
    }
    .checked{
        padding: 10px;
    }
  }
  .confirm_btn{
    padding-top: 20px;
    display: flex;
    justify-content: space-around;
  }
  //禁用输入框内文字颜色调整
  .el-textarea.is-disabled,.el-input.is-disabled,.el-input__inner.is-disabled,.el-radio.is-disabled {
    .el-textarea__inner,.el-input__inner,.el-range-input,.el-radio__label{
      color: #777 !important;
    }
 }